package Day03;

public class Test9 {
    public static void main(String[] args) {
        printNum();
    }
    public static void printNum() {
        String  str ;
        int num =21;
        str = (num % 2== 0)? "偶数": "奇数";
        System.out.println("num:"+num+"是"+str);
    }
}
